Skip to main content

Identity Registry Contract

Contract Functions:

1. Init

Working:

Initializes the contract with given parameters.

Signature

function init(
address _trustedIssuersRegistry,
address _claimTopicsRegistry,
address _identityStorage
) external
ParameterTypeDescription
_trustedIssuersRegistryaddressTrusted Issuers registry linked to the Identity Registry
_claimTopicsRegistryaddressclaim topics registry linked to the Identity Registry
_identityStorageaddressidentity registry storage linked to the Identity Registry

2. Register Identity

Working:

This function will whitelist the user on the token.

Signature

function registerIdentity(
address _userAddress,
IIdentity _identity,
uint16 _country
) public
ParameterTypeDescription
_userAddressaddressAddress of the user
_identityaddressIdentity Contract of User
_countrynumberCountry Code of user

3. Batch Register Identity

Working:

This function will whitelist more than 1 user on the token in a single transaction.

Signature:

function batchRegisterIdentity(
address[] calldata _userAddresses,
IIdentity[] calldata _identities,
uint16[] calldata _countries
) external
ParameterTypeDescription
_userAddressesArray of addressesAddresses of the user
_identitiesArray of addressesIdentity Contracts of User
_countriesArray of numbersCountry codes of users